@(isLogin:Boolean)
<div class="page-header">
    <div class="banner">
        <div class="logo">
            <h4 style="margin-top: 0px;width: 1000px; color: white;text-shadow: 2px 2px 0 #555;padding: 25px 15px 20px 15px;
            float: right;margin-left: 20px;"><span style="font-size: 35px;
                font-weight: bolder;padding-right: 15px;color: white;
                border-right: 2px solid white;">Fudan</span> <font style="font-size: 23px;">&nbsp;Pathogen database and standardized evaluation system</font></h4>
        </div>
    </div>
    <nav class="navbar navbar-default">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#coll" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
        </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="navbar-collapse">
            <ul class="nav navbar-nav">
                <li><a href="@routes.IndexController.index()"><span class="glyphicon glyphicon-home"></span>
                    Home</a></li>

                <li class="dropdown">
                    <a href="#"><span class="fa fa-google-wallet"></span>
                        Bacteria <span class="fa fa-caret-down"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="@routes.BacteriaController.browse()">Browse</a></li>
                        <li class="divider"></li>
                        <li><a href="@routes.BacteriaController.searchByTaxBefore()">Search By Taxonomic Information</a></li>
                        @if(isLogin == false){
                            <li class="divider"></li>
                            <li><a href="@routes.BacteriaController.uploadBefore()">Upload bacteria - Admin</a></li>
                            <li><a href="@routes.BacteriaController.manageBacteriaBefore()">Manage bacteria - Admin</a></li>
                        }
                    </ul>
                </li>

                <li class="dropdown">
                    <a href="#"><span class="fa fa-google-wallet"></span>
                        Virus <span class="fa fa-caret-down"></span></a>
                    <ul class="dropdown-menu">
                 @*       <li><a href="@routes.VirusController.toTree()">Tree</a></li>*@
                        <li><a href="@routes.VirusController.browse()">Browse</a></li>
                        <li class="divider"></li>
                        <li><a href="@routes.VirusController.searchByTaxBefore()">Search By Taxonomic Information</a></li>
                   @*     <li><a href="@routes.VirusController.toSearchByTax()">Search By Position</a></li>*@
                        @if(isLogin == false){
                            <li class="divider"></li>
                            <li><a href="@routes.VirusController.uploadBefore()">Upload virus - Admin</a></li>
                            <li><a href="@routes.VirusController.manageBefore()">Manage virus - Admin</a></li>
                        }
                    </ul>
                </li>

                <li class="dropdown">
                    <a href="#"><span class="fa fa-google-wallet"></span>
                        Fungus <span class="fa fa-caret-down"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="@routes.FungusController.browse()">Browse</a></li>
                        <li class="divider"></li>

                        <li><a href="@routes.FungusController.searchByTaxBefore()">Search By Taxonomic Information</a></li>
                        @if(isLogin == false){
                            <li class="divider"></li>
                            <li><a href="@routes.FungusController.uploadBefore()">Upload fungus - Admin</a></li>
                            <li><a href="@routes.FungusController.manageBefore()">Manage fungus - Admin</a></li>
                        }
                    </ul>
                </li>

                <li class="dropdown">
                    <a href="#"><span class="fa fa-google-wallet"></span>
                        Parasite <span class="fa fa-caret-down"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="@routes.ParasiteController.browse()">Browse</a></li>
                        <li class="divider"></li>
                        <li><a href="@routes.ParasiteController.searchByTaxBefore()">Search By Taxonomic Information</a></li>
                        @if(isLogin == false){
                            <li class="divider"></li>
                            <li><a href="@routes.ParasiteController.uploadBefore()">Upload parasite - Admin</a></li>
                            <li><a href="@routes.ParasiteController.manageBefore()">Manage parasite - Admin</a></li>
                        }
                    </ul>
                </li>

                @if(isLogin == false){
                    <li class="dropdown">
                        <a href="@routes.BacteriaController.toRandomForest"><span class="fa fa-google-wallet"></span>
                            Risk evaluation <span class="fa fa-caret-down"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="@routes.RiskController.meanDecreaseGini()">Mean Decrease Gini</a></li>
                            </ul>
                    </li>
                }else{
                    <li >
                        <a href="@routes.BacteriaController.toRandomForest"><span class="fa fa-google-wallet"></span>
                            Risk evaluation</a>
                    </li>
                }





                <li>
                    <a href="@routes.TreeController.tree()"><span class="fa fa-tree"></span>
                        Taxonomy tree</a>
                </li>

                <li>
                    <a href="#"><span class="fa fa-paper-plane"></span>
                        About</a>
                </li>

            </ul>

            @if(isLogin == false) {
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a href="@routes.IndexController.toPassword()"><span class="fa fa-pencil"></span>password</a>
                    </li>
                    <li>
                        <a href="/english/logout?language=english"><span class="fa fa-user"></span> Logout</a>
                    </li>
                    <li style="color: white;
                        margin-left: -10px" >
                        <a><button type="button" onclick="toChinese()" style="background-color: transparent;
                            border: transparent"><span class="fa fa-wordpress" style="margin-right: 3px"></span>中文</button>
                        </a></li>
                </ul>
            }else{
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a href="@routes.IndexController.toAdmin()"><span class="fa fa-user"></span> Login</a>
                    </li>
                    <li style="color: white;
                        margin-left: -10px" >
                        <a><button type="button" onclick="toChinese()" style="background-color: transparent;
                            border: transparent"><span class="fa fa-wordpress" style="margin-right: 3px"></span>中文</button>
                        </a></li>
                </ul>
            }

        </div><!-- /.navbar-collapse -->
    </nav>
</div>


<script>

        function toChinese() {
            var path = window.location.pathname;
            var parameter = window.location.search;
            var path1 = path.split("/");
            var path2 = "/chinese/" + path1[2] + "/" + path1[3] + parameter;
            if(path1[2] == "admin"){
                path2 =  "/chinese/admin/" + path1[3] + "/" + path1[4] + parameter;
            }
            window.location.href = path2;
        }


</script>
